package com.zoweunion.mechanic.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

/**
 * 出租
 * 
 * @author xp
 * @email 17688825585@163.com
 * @date 2021-04-19 19:03:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_s_ss_lease")
@Builder
public class LeaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键 
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 图片地址
	 */
	private String imgSrc;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * GPS经度
	 */
	private Double gpslongitude;
	/**
	 * GPS纬度
	 */
	private Double gpslatitude;
	/**
	 * 车型id
	 */
	private String carModelId;
	/**
	 * 品牌id
	 */
	private String carBrandId;
	/**
	 * 型号id
	 */
	private String carTypeId;
	/**
	 * 工作时长
	 */
	private Integer workHours;
	/**
	 * 设备简介
	 */
	private String remark;
	/**
	 * 租赁价格
	 */
	private Integer price;
	/**
	 * 租赁时间类型
	 */
	private Integer dateType;
	/**
	 * 出租时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date leaseTime;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date deliveryTime;


	/**
	 * 联系电话
	 */
	private Long mobilePhone;
	/**
	 * 是否带司机出租(0:是;1:否
	 */
	private Integer isDriver;
	/**
	 * 是否车险(0:是;1:否
	 */
	private Integer isInsurance;
	/**
	 * 出租状态(0:待出租1:已出租
	 */
	private Integer isLease;
	/**
	 * bd_car_id
	 */
	private String carId;
	/**
	 * 
	 */
	private String districtCode;
	/**
	 * 
	 */
	private String provinceCode;
	/**
	 * 
	 */
	private String cityCode;
	/**
	 * 
	 */
	private Integer deleteFlag;

	private Integer onStatus;
	/**
	 * 
	 */
	private String updateUser;
	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;
	/**
	 * 
	 */
	private String createUser;
	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@TableField(exist = false)
	private String typeName;

	@TableField(exist = false)
	private String brandName;

	@TableField(exist = false)
	private String modelName;

	@TableField(exist = false)
	private String typeImgUrl;

	@TableField(exist = false)
	private String normalImgUrl;

	@TableField(exist = false)
	private Integer type;


}
